﻿@model IRIS.Models.ContentCategory

@{
    ViewBag.Title = "IRIS Ættleiðingartengd fræðsla : Breyta efnisflokk";
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@if (!ViewData.ModelState.IsValid)
{
    <div class="error">
        @Html.ValidationSummary(false)
    </div>
}

@using (Html.BeginForm()) {
    
    <fieldset>
        <legend>Breyta Flokki</legend>
        @Html.HiddenFor(model => model.ID)
        @Html.HiddenFor(model => model.Alive)

        <div class="editor-label">
           Nafn
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
        </div>

        <div class="editor-label">
           Lýsing
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Description)
        </div>
        <p>
            <input type="submit" value="Breyta Flokki" />
        </p>
    </fieldset>
}

